Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Feature/ledger commands #15

Merged

Conversation

Artemkaaas
Copy link
Contributor

No description provided.

xref,
data,
role
).map_err(|err| SovrinError::CommonError(err)))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving of сlosing parenthesis of function params list to next line is bad code style. Please fix it.

@@ -58,6 +60,12 @@ impl ToErrorCode for LedgerError {
}
}

impl From<serde_json::Error> for LedgerError {
fn from(err: serde_json::Error) -> LedgerError {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Common mapping from json error to Ledger error looks wrong. Depend on situation it can be Common::InvalidParam or Common::InvalidState

@@ -72,7 +72,7 @@ impl Issuer {
info!(target: "anoncreds_service", "Issuer generate primary keys for Schema {:?} -> start", &schema);
let mut ctx = BigNumber::new_context()?;

if schema.attribute_names.len() == 0 {
if schema.attr_names.len() == 0 {
return Err(CryptoError::InvalidStructure(format!("List of attribute names is required to setup claim definition")))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we should remove CryptoError::InvalidStructure. We have exactly the same common error.

@jovfer jovfer mentioned this pull request Jun 2, 2017
@vimmerru vimmerru merged commit eea8420 into hyperledger-archives:master Jun 2, 2017
jovfer pushed a commit that referenced this pull request Jun 15, 2017
jovfer pushed a commit that referenced this pull request Jul 12, 2017
Merging master from hyperledger
@Artemkaaas Artemkaaas deleted the feature/ledger-commands branch October 10, 2017 05:06
dkulic pushed a commit to dkulic/indy-sdk that referenced this pull request Aug 14, 2018
* enable settings for global configuration (EN-142)

* EN-142 hyperledger-archives#2

* stabilize unit tests, small fix for EN-125

Signed-off-by: glowkey <douglas.wightman@evernym.com>
hadleym pushed a commit to hadleym/indy-sdk that referenced this pull request Jan 23, 2019
* merges vcx-ci with evernym indy-sdk fork

Signed-off-by: Ryan Marsh <ryan.marsh44@gmail.com>

* accepts libindy 1.7.0~942

Signed-off-by: Ryan Marsh <ryan.marsh44@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants